﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using BestPracticesMVC.Data.DataModels;
using System.ComponentModel.DataAnnotations.Schema;

namespace BestPracticesMvc.Data.DataModels
{
    public class Book
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public int Id { get; set; }

        // unique to do
        public string Name { get; set; }

        public DateTime Created { get; set; }

        public virtual Author Author { get; set; }
    }
}